/* 格式化创作面板样式 */

.formatted-creation-panel {
  width: 100%;
}

.generation-controls {
  margin: 16px 0;
}

.format-validation {
  border-radius: 6px;
}

.content-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.content-preview {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
}

/* 格式化内容样式 */
.formatted-content {
  padding: 40px;
  font-family: 'FangSong_GB2312', '仿宋_GB2312', '仿宋', serif;
  line-height: 1.5;
  background: white;
}

.formatted-content h1 {
  font-family: 'SimHei', '黑体', sans-serif !important;
  font-size: 16pt !important;
  font-weight: bold !important;
  text-align: left !important;
  margin-top: 1em !important;
  margin-bottom: 1em !important;
  line-height: 1.5 !important;
  color: #000 !important;
}

.formatted-content h2 {
  font-family: 'SimHei', '黑体', sans-serif !important;
  font-size: 14pt !important;
  font-weight: bold !important;
  text-align: left !important;
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
  line-height: 1.5 !important;
  color: #000 !important;
}

.formatted-content p {
  font-family: 'FangSong_GB2312', '仿宋_GB2312', '仿宋', serif !important;
  font-size: 12pt !important;
  text-align: justify !important;
  text-indent: 2em !important;
  line-height: 1.5 !important;
  margin-bottom: 0.5em !important;
  color: #000 !important;
}

.formatted-content ul,
.formatted-content ol {
  margin-left: 2em;
  margin-bottom: 0.5em;
}

.formatted-content li {
  font-family: 'FangSong_GB2312', '仿宋_GB2312', '仿宋', serif !important;
  font-size: 12pt !important;
  line-height: 1.5 !important;
  margin-bottom: 0.25em;
}

/* 普通内容样式 */
.plain-content {
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #262626;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .formatted-content {
    padding: 20px;
  }
  
  .formatted-content h1 {
    font-size: 14pt !important;
  }
  
  .formatted-content h2 {
    font-size: 13pt !important;
  }
  
  .formatted-content p {
    font-size: 11pt !important;
  }
  
  .content-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* 滚动条样式 */
.content-preview::-webkit-scrollbar {
  width: 6px;
}

.content-preview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.content-preview::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.content-preview::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 加载状态 */
.generation-controls .ant-btn-loading {
  pointer-events: none;
}

/* 格式验证样式 */
.format-validation .ant-alert {
  border-radius: 6px;
}

.format-validation .ant-alert-success {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
}

.format-validation .ant-alert-warning {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
}
